const  express=require('express')
const  app=express()

const  cors=require('cors')
app.use(cors())

app.get('/',(req,res)=>{
    var  data=[
        {id:1,num:10,name:'裤子'},
        {id:2,num:20,name:'裤子2'},
        {id:3,num:30,name:'裤子3'},
        {id:4,num:40,name:'裤子4'},
    ]
    res.send(data)
})
app.listen(2000,()=>{
    console.log('http://127.0.0.1:2000')
})